<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript" src="https://cdn.staticfile.org/fingerprintjs2/2.1.0/fingerprint2.min.js"></script>
<script>
    const start = new Date().getTime();
    // let view = document.querySelector('#view');
    // view.innerHTML = '';
    let excludes = {};
    let options = {
        excludes: excludes
    }
    console.log(options)
    Fingerprint2.get(options, function (components) {
        // 参数
        const values = components.map(function (component) {
            return component.value
        });
        // 指纹
        const murmur = Fingerprint2.x64hash128(values.join(''), 31);
        // view.innerHTML += '<p class="pp">标识 : ' + murmur + '</p>';
        sessionStorage.setItem("Finger", murmur); //存入标识值
        // eslint-disable-next-line no-console
        console.log('murmur---->', murmur)
        // console.log(murmur);
    });
</script>
</body>
</html>
